#ifndef GAMEFORM_H
#define GAMEFORM_H

#include <QWidget>
#include <QTimer>
#include <QCloseEvent>
#include "ui_gameform.h"

class GameForm : public QWidget
{
    Q_OBJECT

public:
    GameForm(QWidget *parent = Q_NULLPTR);
    ~GameForm();
    void NowShow(QString Text, int Msecond = 5000);

private slots:

    void OnShowMove();
    void OnShowStay();
    void OnClose();

private:
    Ui::GameForm ui;

    void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;

    int DesktopHeight;
    int WindowHeight;
    int StayMsecond;
    QPoint DoPoint;
    QTimer* ShowTimer;
    QTimer* StayTimer;
    QTimer* CloseTimer;
};
#endif
